package com.wing.purchase.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.purchase.model.entity.PurReturnGoodsRecords;
import com.wing.purchase.model.request.PurGoodsLogisticsDetailAddForm;
import com.wing.purchase.model.request.PurReturnGoodRecordsUpdateForm;
import com.wing.purchase.model.response.PurReturnGoodRecordsSearchVo;

import java.util.Map;

/**
 * 退货记录-service
 * @version 1.1.0
 * @Author hz
 * @Date 2024-11-16 15:17
 **/
public interface PurReturnGoodsRecordsService extends IService<PurReturnGoodsRecords> {
    /**
     * 查询退货记录
     * @param pg
     * @param params
     * @return
     */
    Page<PurReturnGoodRecordsSearchVo> pageList4app(Page<PurReturnGoodRecordsSearchVo> pg, Map<String, Object> params);

    /**
     * 添加退货记录
     * @param purReturnGoodRecordsUpdateForm
     * @return
     */
    int addReturnRecordsGoods(PurReturnGoodRecordsUpdateForm purReturnGoodRecordsUpdateForm);

    /**
     * 修改退货记录
     * @param replenishmentOrderForm
     * @return
     */
    int updateReturnRecordsGoods(PurReturnGoodRecordsUpdateForm replenishmentOrderForm);

    /**
     * 查询退货记录详情
     * @param recordId
     * @return
     */
    PurReturnGoodRecordsUpdateForm getByDetailId(String recordId);

    /**
     * 删除退货记录
     * @param recordId
     * @return
     */
    boolean deleteBy(String recordId);

    /**
     * 采购退货发货信息
     * @param purReturnGoodRecordsUpdateForm
     * @return
     */
    int addLogisticsInfo(PurGoodsLogisticsDetailAddForm purReturnGoodRecordsUpdateForm);
}
